package org.yjc.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
@Entity
public class Student extends SysUser{
	//学生
	private String stuNum; //学号
	private TbClass tbclass; //班级
	
	@Column(unique=true)
	public String getStuNum() {
		return stuNum;
	}
	public void setStuNum(String stuNum) {
		this.stuNum = stuNum;
	}
	@ManyToOne
	public TbClass getTbclass() {
		return tbclass;
	}
	public void setTbclass(TbClass tbclass) {
		this.tbclass = tbclass;
	}
	
}
